package com.techstar.ats.codec.history.decoder;

import io.netty.buffer.ByteBuf;
import com.techstar.ats.dxp.history.rep.F28ReportBegin;
import com.techstar.ats.type.MessageType;

public enum F28ReportBeginDecoder implements ReportDecoder<F28ReportBegin> {
	INSTANCE;

	public F28ReportBegin create() {
		return new F28ReportBegin();
	}

	public void decode(ByteBuf buf, F28ReportBegin value) {
		ReportDecoder.super.decode(buf, value);
		value.type = MessageType.valueOf(buf.readUnsignedShort());
	}
}
